//
//  HttpRequestManager.h
//  ShopXinyi
//
//  Created by qianfeng on 15/9/15.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void(^httpSuccess)(id responseObj);
typedef void(^httpFailure)(NSError *error);

@interface HttpRequestManager : NSObject

+(instancetype)shareInstance;

//获取首页数据
-(void)getHomePageInfoSuccess:(httpSuccess)success failure:(httpFailure)failure;
//获取分类大数据
-(void)getClassPageInfoSuccess:(httpSuccess)success failure:(httpFailure)failure;
//获取分类小数据
-(void)getClassPageInfoWithID:(NSString*)goodClassID Success:(httpSuccess)success failure:(httpFailure)failure;
//获取分类图片
-(void)getClassPictureWithGoodsID:(NSString *)goodsID success:(httpSuccess)success failure:(httpFailure)failure;

//获取天天特价数据
-(void)getDiscountGoodsInfoSuccess:(httpSuccess)success failure:(httpFailure)failure;
//获取购物车数据
-(void)postCartInfoWithKey:(NSString *)key success:(httpSuccess)suceess failure:(httpFailure)failure;


//登录
-(void)loginWithClient:(NSString *)client andPassword:(NSString *)password andUsername:(NSString *)username sueecss:(httpSuccess)success failure:(httpFailure)failure;
//用户信息
-(void)getUserInfoWithKey:(NSString *)key success:(httpSuccess)success failure:(httpFailure)failure;

//详情页
-(void)getDetailInfoWithGoodsID:(NSString *)goodsID success:(httpSuccess)success failure:(httpFailure)failure;

@end
